package tsing.good_simple.no_static_call_static;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import tsing.good_simple.goodutil.RedisUtil;

import javax.annotation.PostConstruct;

@Component
public class SessionUtils {

    @Autowired
    private RedisUtil redisUtil;

    public static SessionUtils sessionUtils;


    public @PostConstruct void init () {
        System.out.println("UtilTest 执行 innit方法");
        sessionUtils = this; //
        sessionUtils.redisUtil = this.redisUtil;
    }



	public SessionUtils(){

    	System.out.println("UtilTest 执行 noargs construct方法");
    }





}
